package com.ftg.learn.rbac.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Guo
 * @date 2022/2/8
 */
@Data
@TableName("sys_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户Id")
    private Long uid;

    @ApiModelProperty("用户名")
    private String uaccount;

    @ApiModelProperty("姓名")
    private String uname;

    @ApiModelProperty("密码")
    private String upassword;

    @ApiModelProperty("用户状态")
    @TableLogic
    private Byte ustatus;

}
